package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserGroupPrice对象", description="")
public class UserGroupPrice implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "标题，显示在商品详情页中")
    private String title;

    @ApiModelProperty(value = "用户分组id")
    private Integer groupId;

    @ApiModelProperty(value = "绑定类型")
    private String targetType;

    @ApiModelProperty(value = "商品id或者其它盲盒id")
    private Integer targetId;

    @ApiModelProperty(value = "折扣方式、1为固定价、2为打折价")
    private Integer discountType;

    @ApiModelProperty(value = "打折 75表示75折")
    private Integer discountRatio;

    @ApiModelProperty(value = "积分价")
    private Integer scorePrice;

    @ApiModelProperty(value = "人民币价")
    private Integer moneyPrice;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "权重")
    private Integer listWeight;

    @ApiModelProperty(value = "1为上架中,  0为下架中")
    private Boolean status;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;


}
